﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRM.DAL.DAO;
using HRM.DAL.Gateway;

namespace HRM.BLL
{
    public class NoticeManager
    {
        NoticeGateway gateway=new NoticeGateway();
        public bool PublishNotice(Notice notice)
        {
            return gateway.PublishNotice(notice);
        }
        public bool UpdateNotice(Notice notice)
        {
            return gateway.UpdateNotice(notice);
        }
        public bool DeleteNotice(int id)
        {
            return gateway.DeleteNotice(id);
        }
        public List<Notice>GetAllNotices()
        {
            return gateway.GetAllNotices();
        } 
        public Notice GetNotice(int id)
        {
            return gateway.GetNotice(id);
        }

    }
}